package com.pjedu.springbootrestful04.service;

import com.pjedu.springbootrestful04.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findAll();
    public User findById(Integer id);
    public List<User> findAllByConditions(User user);
    //该方法通过example对象的拼接方式来演示具体的使用
    public List<User> findUsersLikeUsernames(String username);
    //添加进行Restful操作的增删改方法
    public int insertUser(User user);
    public int updateUser(User user);
    public int deleteUserById(Integer uid);
}
